package com.tuanzi.loan.business.service.family;

import com.tuanzi.loan.vo.request.family.IcpWebSensitiveKeywordSearchRequest;
import com.tuanzi.loan.vo.response.family.IcpWebSensitiveKeywordSearchResponse;
import com.tuanzi.loan.core.vo.PageSearcher;
import org.springframework.data.domain.Page;

/**
 * ICP备案网站敏感字管理 ServiceInterface
 * @author JinRuiyang 2017/12/13 18:03:42
 */
public interface IcpWebSensitiveKeywordService {

    int Published = 1;
    int UnPublish = 0;

    int Enabled = 1;
    int Disabled = 0;

    /**
     * 更新敏感词的发布状态
     * @param id 敏感词id
     * @param status 发布状态
     */
    void updatePublishStatus(Long id, Integer status);

    /**
     * 添加敏感词
     * @param keyword 敏感词
     */
    void insert(String keyword);

    /**
     * 删除敏感词
     * @param id 敏感词id
     */
    void delete(Long id);

    /**
     * IcpWebSensitiveKeyword查询
     * @param pageSearcher 请求信息
     * @return 响应列表
     */
    Page<IcpWebSensitiveKeywordSearchResponse> list(PageSearcher<IcpWebSensitiveKeywordSearchRequest> pageSearcher);
}
